//---------------------------------------------------------------------------

#ifndef DMJH
#define DMJH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ImgList.hpp>
#include <Dialogs.hpp>
#include <XPMan.hpp>
#include "DBAccess.hpp"
#include "IBC.hpp"
#include "DAScript.hpp"
#include "IBCScript.hpp"
#include "DASQLMonitor.hpp"
#include "IBCAdmin.hpp"
#include "IBCSQLMonitor.hpp"
#include <DB.hpp>
#include "MemDS.hpp"
#include "IBDatabase.hpp"
//---------------------------------------------------------------------------
class TdmOne : public TDataModule
{
__published:	// IDE-managed Components
	TImageList *ImlOne;
	TOpenDialog *OpDlgOne;
	TSaveDialog *SvDlgOne;
	TXPManifest *XPManifest1;
	TIBCQuery *IBQOne;
	TIBCQuery *IBQDop;
	TIBCQuery *IBQTwo;
	TIBCQuery *IBQTree;
	TIBCQuery *IBQFour;
	TIBCQuery *IBQSUP;
	TIBCDataSource *dsOne;
	TIBCTransaction *trWrite;
	TIBCTransaction *trRead;
	TIBCScript *IBSOne;
	TIBCStoredProc *IBStPrOne;
	TIBCConnection *IBDBOne;
	TIBCBackupService *IBBackupSOne;
	TIBCRestoreService *IBRestoreSOne;
	TIBCSQLMonitor *IBSQLMonitor1;
	TIBCSQL *IBSQL;
	TIBCDataSource *dsTwo;
private:	// User declarations
public:		// User declarations
	String DBDir, DBP, Us, IP_Us, Rol_Us, ServN, DBname, DBFDir;
	__fastcall TdmOne(TComponent* Owner);
//	void __fastcall TdmOne::Connect_FDB();
//	void __fastcall TdmOne::Connect_DBF();
//	void __fastcall TdmOne::FullBox(TComboBox *cbFulling, String Sprav, String Pole="NAIM");
//	void __fastcall TdmOne::ClearGrid(TStringGrid *sgCl);
//	void __fastcall TdmOne::ClearGB(TGroupBox *gbClear);
//	String __fastcall TdmOne::Val1_po_Val2(String Tab, String FindF,
//						   String PoF, String PoVal2, String Usl="CONTAINING");
//	String __fastcall TdmOne::UpOrIns(String Tek_Naim, String Tek_Tabl,
//	                                  String Zavis_Tabl="", String Zavis_Zn="");						  
//	int __fastcall TdmOne::MaxNom(String Tabl,String Pole="KOD");
//	String __fastcall TdmOne::IP();
//	void __fastcall TdmOne::sgPerenos(TStringGrid *sgPer, int ACol, int ARow,
//									  TRect &Rect, int MaxWid);

//	void __fastcall TdmOne::UpD_Int(TEdit *edUpD, TUpDown *UpDed);
//	String __fastcall TdmOne::KonvertTime(int MSe);
//	void __fastcall TdmOne::Add_Action(String Tab, String Pole,
//									   int Act_ID, String Note="");
//	void __fastcall TdmOne::Sharing(int KodRole);
//	void __fastcall TdmOne::Rezerv_FDB();
 //void __fastcall TdmOne::UpD_Ch(TEdit *edUpD, TUpDown *UpDed);
};
//---------------------------------------------------------------------------
extern PACKAGE TdmOne *dmOne;
//---------------------------------------------------------------------------
#endif
